package edu.kjxy.day03.synchronizedBlockLockAll.test2;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/2 19:43
 */
public class ThreadA extends Thread{
    private Service service;
    private MyObject object;
    public ThreadA(Service service, MyObject object){
        super();
        this.service = service;
        this.object = object;
    }

    @Override
    public void run() {
        super.run();
        service.testMethod1(object);
    }
}
